package com.coco.job;

import com.coco.service.PusherService;
import jakarta.annotation.Resource;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * Title:JobWorker.java
 * Description:定时任务，后台执行消息推送
 * Author：CoCo
 * Date:2024/9/19
 * Version:1.0
 */
public class JobWorker {

    @Resource
    PusherService pusherService;

    @Scheduled(cron = "${wechat.cron}")
    public void goodMorning(){
        pusherService.pushMorningGreeting();
    }
}
